package com.shanwen.shopping.entity;

import java.io.Serializable;

/**
 * 单条资讯对象
 */
public class ModuleContentInfo implements Serializable {

    private static final long serialVersionUID = -7398919196741051514L;
    private Detail dataJson;
    /** 内容id */
    private long moduleContentId;
    /** 发布时间,分页用 */
    private long publishTime;
    /**
     * 内容类型(只有单条资讯)
     * <pre>
     * 1:单条资讯
     * 2:多条资讯
     * 3:音频
     * 4:视频
     * 5:图集
     * 6:单本书籍
     * </pre>
     */
    private String type;

    public ModuleContentInfo(Detail dataJson, String type, long moduleContentId, long publishTime) {
        this.dataJson = dataJson;
        this.type = type;
        this.moduleContentId = moduleContentId;
        this.publishTime = publishTime;
    }

    public Detail getDataJson() {
        return dataJson;
    }

    public void setDataJson(Detail dataJson) {
        this.dataJson = dataJson;
    }

    public long getModuleContentId() {
        return moduleContentId;
    }

    public void setModuleContentId(long moduleContentId) {
        this.moduleContentId = moduleContentId;
    }

    public long getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(long publishTime) {
        this.publishTime = publishTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static class Detail implements Serializable {
        private static final long serialVersionUID = -3659472055845448976L;

        private int collectNum; //收藏数
        private int commentNum; //评论数
        private String coverImageUrl; //封面，可能为空
        private String detailType; //内容详情的类型, imagelist=图集 video=视频 audio=音频 book=书籍 imagetext=图文
        private String fromSource; //新闻来源
        private String htmlUrl; //详情url，可能为空
        private int layoutType; //布局类型，1=无图，2=大图，3=小图左，4=小图右
        private long modelContentDetailId; //内容详情id
        private int praiseNum; //点赞数
        private String shortDesc; //简介
        private String title; //标题

        public int getCollectNum() {
            return collectNum;
        }

        public void setCollectNum(int collectNum) {
            this.collectNum = collectNum;
        }

        public int getCommentNum() {
            return commentNum;
        }

        public void setCommentNum(int commentNum) {
            this.commentNum = commentNum;
        }

        public String getCoverImageUrl() {
            return coverImageUrl;
        }

        public void setCoverImageUrl(String coverImageUrl) {
            this.coverImageUrl = coverImageUrl;
        }

        public String getDetailType() {
            return detailType;
        }

        public void setDetailType(String detailType) {
            this.detailType = detailType;
        }

        public String getFromSource() {
            return fromSource;
        }

        public void setFromSource(String fromSource) {
            this.fromSource = fromSource;
        }

        public String getHtmlUrl() {
            return htmlUrl;
        }

        public void setHtmlUrl(String htmlUrl) {
            this.htmlUrl = htmlUrl;
        }

        public int getLayoutType() {
            return layoutType;
        }

        public void setLayoutType(int layoutType) {
            this.layoutType = layoutType;
        }

        public long getModelContentDetailId() {
            return modelContentDetailId;
        }

        public void setModelContentDetailId(long modelContentDetailId) {
            this.modelContentDetailId = modelContentDetailId;
        }

        public int getPraiseNum() {
            return praiseNum;
        }

        public void setPraiseNum(int praiseNum) {
            this.praiseNum = praiseNum;
        }

        public String getShortDesc() {
            return shortDesc;
        }

        public void setShortDesc(String shortDesc) {
            this.shortDesc = shortDesc;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
    }
}
